package com.kaifamiao.statements;

public class Fox {
    public static void main(String[] args) {

        for(int i = 1 ; i < 10 ; i++ ){
            for(int j = 1 ; j < 10 ; j++ ) {
                System.out.printf( "(%d,%d)\t" , i , j );
            }
            System.out.println();
        }

        System.out.println( "- ".repeat( 30 ) );

        for(int i = 1 ; i < 10 ; i++ ){
            for(int j = 1 ; j <= i ; j++ ) {
                System.out.printf( "(%d,%d)\t" , i , j );
            }
            System.out.println();
        }

        // 输出九九乘法表
        for(int i = 1 ; i < 10 ; i++ ){
            for(int j = 1 ; j <= i ; j++ ) {
                System.out.printf( "%d * %d = %d\t" , j , i , i * j );
            }
            System.out.println();
        }
    }
}
